<div class="menuRightSide">
<?php
$sessionData = SessionData::instance();
$authOrg = $sessionData->getAuthOrg();

// Crossroads
html::crossroads('org');

echo '<div>' . html::anchor('/auth/logout', text::get('orgSpace.menu-logout')) . '</div>';
echo '<div>' . html::anchor('/org/myOrganization/edit', $authOrg['name']) . '</div>';
?>
</div>
<div id="headerBlock" class="simpleMenu">
    <?php
    foreach (OrgMenu::menuList() as $labelKey => $url) {
        echo '<div';
        if ($this->activeMenuItem == $labelKey) {
            echo ' class="activeMenuTab"';
        }
        $hintKey = 't.orgSpace-menu-' . $labelKey . '-hint';
        $hint = text::get($hintKey);
        if ($hint != $hintKey) {
        	echo ' title="' . html::escape($hint) . '"';
        }
        echo '>' . html::anchor($url, text::get('orgSpace.menu-' . $labelKey)) . '</div>';
    }
    ?>
</div>